# the minimum version of CMake.
cmake_minimum_required(VERSION 3.4.1)

#三方库编译 begin
#project(libadd)
#add_library(add SHARED add.cpp)
#三方库编译 end

project(NAPI_learning)

set(NATIVERENDER_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR})

include_directories(${NATIVERENDER_ROOT_PATH}
                    ${NATIVERENDER_ROOT_PATH}/include)

add_library(nativesample SHARED hello.cpp)

#链接三方库 begin
target_link_directories(nativesample PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../../libs/${OHOS_ARCH}/)

MESSAGE("this var key " ${CMAKE_CURRENT_SOURCE_DIR}/../../../libs/${OHOS_ARCH}/)
#链接三方库 end

target_link_libraries(nativesample PUBLIC libace_napi.z.so     libhilog_ndk.z.so libadd.so)